<template>
	<view class="">

		<view class="active-one-lists flex justify-between" v-for="(item,index) in lists" :key="index" >
			<view class="active-one-lists-left flex">
				<view class="img-box">
					<image class="head" v-if="item.images" :src="item.images.split(',')[0]" mode=""></image>
					<image class="sex"
						:src="item.isFocus == 0 ? '/static/image/mine/man.png' : '/static/image/mine/girl.png'" mode="">
					</image>
				</view>
				<view class="">
					<view class="flex">
						<view class="active-one-title">
							{{item.user_nickname}}
						</view>
						<image class="active-one-vip" src="/static/image/mine/vips.png" mode=""></image>
					</view>
					<view class="active-one-time">
						{{item.action_time}}
					</view>
				</view>
			</view>
			<view class="active-one-lists-right" v-show="isType == 0">
				已关注
			</view>
			<view class="active-one-lists-right" v-show="isType == 1 && item.isFocus == 1">
				已关注
			</view>
			<view class="active-one-lists-right black" v-show="isType == 1 && item.isFocus == 0">
				回关
			</view>
			<view class="active-one-lists-right-z" v-show="isType == 2">
				访问了你
			</view>
			<view class="active-one-lists-right-z" v-show="isType == 3">
				访问了TA
			</view>
		</view>
		<view v-if="lists.length==0" class="normaltxt"> 暂无数据 </view>
	</view>
</template>

<script>
	export default {
		props: {
			// <!-- isType 0 关注 1 粉丝 2 访客 3足迹 -->
			isType: {
				type: Number,
				default: 0
			}, //km显示
			lists: {
				type: Array,
				default () {
					return []
				}
			}
		},
		data() {
			return {

			}
		},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	.active-one-lists {
		width: 100%;
		height: 100rpx;
		border-bottom: 1rpx solid #EFEFEF;
		align-items: center;
		margin-bottom: 20rpx;
		padding-bottom: 20rpx;

		.active-one-lists-left {
			.img-box{
				width: 80rpx;
				height: 80rpx;
				position: relative;
				margin-right: 18rpx;
			}
			.head {
				width: 100%;
				height: 100%;
				border-radius: 50%;
			}

			.sex {
				width: 32rpx;
				height: 32rpx;
				border-radius: 50%;
				position: absolute;
				right: 6rpx;
				top: 46rpx;
			}

			.active-one-title {
				font-weight: 500;
				font-size: 32rpx;
				color: #000000;
			}

			.active-one-vip {
				width: 54rpx;
				height: 28rpx;
				margin: 10rpx 0 0 16rpx;
			}

			.active-one-time {
				font-weight: 400;
				font-size: 22rpx;
				color: #999999;
				margin-top: 10rpx;
			}
		}
		.black{
			background-color: #000;
			color: #fff !important;
		}
		.active-one-lists-right {
			width: 128rpx;
			height: 50rpx;
			border-radius: 10rpx;
			text-align: center;
			line-height: 50rpx;
			border: 1rpx solid #000;
			font-weight: 400;
			font-size: 24rpx;
			color: #000000;
		}
	}
	.normaltxt {
		text-align: center;
		font-size: 28rpx;
		color: rgba(153, 153, 153, 1);
		margin: 86rpx 0
	}
</style>